﻿import idv.ben.gc4flash.chart.*;
import idv.ben.gc4flash.dataLine.*;
import idv.ben.gc4flash.encode.*;
import idv.ben.gc4flash.fill.*;
import idv.ben.gc4flash.util.*;
/**
* 定義常數<br>
*/
class idv.ben.gc4flash.util.Const {
	/**
	* "http://chart.apis.google.com/chart?"<br>
	* Google Chart 提供服務的網址
	*/
	public static var CHART_API_URL:String = "http://chart.apis.google.com/chart?";

	private static var PARAM_IDX:Number = 1;
	/**
	* Optional parameter -- 標題
	*/
	//chtt=<chart title>
	public static var PARAM_Chart_title:Number = (PARAM_IDX *= 2);
	/**
	* Optional parameter -- 標題風格
	*/
	//chts=<color>,<fontsize>
	public static var PARAM_Chart_title_color_fontsize:Number = (PARAM_IDX *= 2);
	/**
	* Optional parameter -- 圖示
	*/
	//chdl=<first data set label>|<n data set label>
	public static var PARAM_Chart_legend:Number = (PARAM_IDX *= 2);
	/**
	* Optional parameter -- 顏色
	*/
	//chco=<color1>,...<colorn>
	public static var PARAM_Colors:Number = (PARAM_IDX *= 2);
	/**
	* Optional parameter -- 背景填色
	*/
	//chf=<bg or c><type of fill>
	public static var PARAM_Chart_and_background_fill:Number = (PARAM_IDX *= 2);
	/**
	* Optional parameter -- 座標軸
	*/
	//chxt=, chxl=, chxp=, chxr=, chxs=
	public static var PARAM_Multiple_axis_labels:Number = (PARAM_IDX *= 2);
	/**
	* [TODO] <i>尚未使用並實做相關功能</i>
	*/
	public static var PARAM_Grid_lines:Number = (PARAM_IDX *= 2);
	/**
	* [TODO] <i>尚未使用並實做相關功能</i>
	*/
	public static var PARAM_Shape_markers:Number = (PARAM_IDX *= 2);
	/**
	* [TODO] <i>尚未使用並實做相關功能</i>
	*/
	public static var PARAM_Horizontal_range_markers:Number = (PARAM_IDX *= 2);
	/**
	* [TODO] <i>尚未使用並實做相關功能</i>
	*/
	public static var PARAM_Vertical_range_markers:Number = (PARAM_IDX *= 2);
	/**
	* Optional parameter -- 線段樣式
	*/
	//chls=<data set 1 line thickness>,<length of line segment>,<length of blank segment>|...|<data set n line thickness>,<length of line segment>,<length of blank segment>
	public static var PARAM_Line_styles:Number = (PARAM_IDX *= 2);
	/**
	* [TODO] <i>尚未使用並實做相關功能</i>
	*/
	public static var PARAM_Fill_area:Number = (PARAM_IDX *= 2);
	/**
	* Optional parameter -- 長條圖風格
	*/
	//chbh=<bar width in pixels>,<optional space between bars in a group>,<optional space between groups>
	public static var PARAM_Bar_width_and_spacing:Number = (PARAM_IDX *= 2);
	/**
	* Optional parameter -- 圓餅圖風格
	*/
	//chl=<label 1 value>|...<label n value>
	public static var PARAM_Pie_chart_labels:Number = (PARAM_IDX *= 2);
	
	/**
	* Line chart's optional parameters
	*/
	public static var CHT_PARAM_Line_chart:Number = PARAM_Chart_title | PARAM_Chart_title_color_fontsize | PARAM_Chart_legend | PARAM_Colors | PARAM_Chart_and_background_fill | PARAM_Multiple_axis_labels | PARAM_Grid_lines | PARAM_Shape_markers | PARAM_Horizontal_range_markers | PARAM_Vertical_range_markers | PARAM_Line_styles | PARAM_Fill_area;
	/**
	* Scatter plot's optional parameters
	*/
	public static var CHT_PARAM_Scatter_plot:Number = PARAM_Chart_title | PARAM_Chart_title_color_fontsize | PARAM_Chart_legend | PARAM_Colors | PARAM_Chart_and_background_fill | PARAM_Multiple_axis_labels | PARAM_Grid_lines | PARAM_Shape_markers | PARAM_Horizontal_range_markers | PARAM_Vertical_range_markers;
	/**
	* Bar chart's optional parameters
	*/
	public static var CHT_PARAM_Bar_chart:Number = PARAM_Chart_title | PARAM_Chart_title_color_fontsize | PARAM_Chart_legend | PARAM_Colors | PARAM_Chart_and_background_fill | PARAM_Multiple_axis_labels | PARAM_Bar_width_and_spacing;
	/**
	* Venn diagram's optional parameters
	*/
	public static var CHT_PARAM_Venn_diagram:Number = PARAM_Chart_title | PARAM_Chart_title_color_fontsize | PARAM_Chart_legend | PARAM_Colors | PARAM_Chart_and_background_fill;
	/**
	* Pie chart's optional parameters
	*/
	public static var CHT_PARAM_Pie_chart:Number = PARAM_Chart_title | PARAM_Chart_title_color_fontsize | PARAM_Colors | PARAM_Chart_and_background_fill | PARAM_Pie_chart_labels;
}
